<?php
namespace app\api\controller\operation;
use think\App;
use app\api\common;
use app\api\ControllerBase;
use app\api\server\operation\Focus as FocusServer;
/**
 * @title 关注类(公用)
 */
class Focus extends ControllerBase{
	
	public function __construct(App $app){
		$this->REQUEST=$app->request;
		$this->checkParam($this->REQUEST);
		self::$s_server=new FocusServer($app);
	}
	/**
	 * @title 关注
	 * @param string focus_id - 需要关注的用户的id
	 */
	public function focus(){
		$checkFlag = $this->checkVailDate(\app\api\validate\Operation::class, __function__);
        if ($checkFlag == false) {
            return common::return_json($checkFlag, $this->ERROR, $this->CODE);
        }
        return $this->commonFunction(__function__);
	}
	
	/**
	 * @title 取关
	 * @param string focus_id - 需要关注的用户的id
	 */
	public function unFocus(){
		$checkFlag = $this->checkVailDate(\app\api\validate\Operation::class, __function__);
        if ($checkFlag == false) {
            return common::return_json($checkFlag, $this->ERROR, $this->CODE);
        }
        return $this->commonFunction(__function__);
	}
}
?>